package cn.pojo;

import java.util.ArrayList;
import java.util.List;

public class GoodsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNull() {
            addCriterion("goodsName is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIsNotNull() {
            addCriterion("goodsName is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNameEqualTo(String value) {
            addCriterion("goodsName =", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotEqualTo(String value) {
            addCriterion("goodsName <>", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThan(String value) {
            addCriterion("goodsName >", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
            addCriterion("goodsName >=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThan(String value) {
            addCriterion("goodsName <", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLessThanOrEqualTo(String value) {
            addCriterion("goodsName <=", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameLike(String value) {
            addCriterion("goodsName like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotLike(String value) {
            addCriterion("goodsName not like", value, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameIn(List<String> values) {
            addCriterion("goodsName in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotIn(List<String> values) {
            addCriterion("goodsName not in", values, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameBetween(String value1, String value2) {
            addCriterion("goodsName between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsNameNotBetween(String value1, String value2) {
            addCriterion("goodsName not between", value1, value2, "goodsName");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdIsNull() {
            addCriterion("goodsSmalId is null");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdIsNotNull() {
            addCriterion("goodsSmalId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdEqualTo(Long value) {
            addCriterion("goodsSmalId =", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdNotEqualTo(Long value) {
            addCriterion("goodsSmalId <>", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdGreaterThan(Long value) {
            addCriterion("goodsSmalId >", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdGreaterThanOrEqualTo(Long value) {
            addCriterion("goodsSmalId >=", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdLessThan(Long value) {
            addCriterion("goodsSmalId <", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdLessThanOrEqualTo(Long value) {
            addCriterion("goodsSmalId <=", value, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdIn(List<Long> values) {
            addCriterion("goodsSmalId in", values, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdNotIn(List<Long> values) {
            addCriterion("goodsSmalId not in", values, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdBetween(Long value1, Long value2) {
            addCriterion("goodsSmalId between", value1, value2, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsSmalIdNotBetween(Long value1, Long value2) {
            addCriterion("goodsSmalId not between", value1, value2, "goodsSmalId");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyIsNull() {
            addCriterion("goodsMoney is null");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyIsNotNull() {
            addCriterion("goodsMoney is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyEqualTo(Double value) {
            addCriterion("goodsMoney =", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyNotEqualTo(Double value) {
            addCriterion("goodsMoney <>", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyGreaterThan(Double value) {
            addCriterion("goodsMoney >", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("goodsMoney >=", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyLessThan(Double value) {
            addCriterion("goodsMoney <", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyLessThanOrEqualTo(Double value) {
            addCriterion("goodsMoney <=", value, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyIn(List<Double> values) {
            addCriterion("goodsMoney in", values, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyNotIn(List<Double> values) {
            addCriterion("goodsMoney not in", values, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyBetween(Double value1, Double value2) {
            addCriterion("goodsMoney between", value1, value2, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsMoneyNotBetween(Double value1, Double value2) {
            addCriterion("goodsMoney not between", value1, value2, "goodsMoney");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIsNull() {
            addCriterion("goodsNumber is null");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIsNotNull() {
            addCriterion("goodsNumber is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberEqualTo(Integer value) {
            addCriterion("goodsNumber =", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotEqualTo(Integer value) {
            addCriterion("goodsNumber <>", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberGreaterThan(Integer value) {
            addCriterion("goodsNumber >", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsNumber >=", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberLessThan(Integer value) {
            addCriterion("goodsNumber <", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberLessThanOrEqualTo(Integer value) {
            addCriterion("goodsNumber <=", value, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberIn(List<Integer> values) {
            addCriterion("goodsNumber in", values, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotIn(List<Integer> values) {
            addCriterion("goodsNumber not in", values, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberBetween(Integer value1, Integer value2) {
            addCriterion("goodsNumber between", value1, value2, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsNumber not between", value1, value2, "goodsNumber");
            return (Criteria) this;
        }

        public Criteria andGoodsImageIsNull() {
            addCriterion("goodsImage is null");
            return (Criteria) this;
        }

        public Criteria andGoodsImageIsNotNull() {
            addCriterion("goodsImage is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsImageEqualTo(String value) {
            addCriterion("goodsImage =", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageNotEqualTo(String value) {
            addCriterion("goodsImage <>", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageGreaterThan(String value) {
            addCriterion("goodsImage >", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageGreaterThanOrEqualTo(String value) {
            addCriterion("goodsImage >=", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageLessThan(String value) {
            addCriterion("goodsImage <", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageLessThanOrEqualTo(String value) {
            addCriterion("goodsImage <=", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageLike(String value) {
            addCriterion("goodsImage like", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageNotLike(String value) {
            addCriterion("goodsImage not like", value, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageIn(List<String> values) {
            addCriterion("goodsImage in", values, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageNotIn(List<String> values) {
            addCriterion("goodsImage not in", values, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageBetween(String value1, String value2) {
            addCriterion("goodsImage between", value1, value2, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsImageNotBetween(String value1, String value2) {
            addCriterion("goodsImage not between", value1, value2, "goodsImage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageIsNull() {
            addCriterion("goodsCarriage is null");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageIsNotNull() {
            addCriterion("goodsCarriage is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageEqualTo(Double value) {
            addCriterion("goodsCarriage =", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageNotEqualTo(Double value) {
            addCriterion("goodsCarriage <>", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageGreaterThan(Double value) {
            addCriterion("goodsCarriage >", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageGreaterThanOrEqualTo(Double value) {
            addCriterion("goodsCarriage >=", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageLessThan(Double value) {
            addCriterion("goodsCarriage <", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageLessThanOrEqualTo(Double value) {
            addCriterion("goodsCarriage <=", value, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageIn(List<Double> values) {
            addCriterion("goodsCarriage in", values, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageNotIn(List<Double> values) {
            addCriterion("goodsCarriage not in", values, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageBetween(Double value1, Double value2) {
            addCriterion("goodsCarriage between", value1, value2, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsCarriageNotBetween(Double value1, Double value2) {
            addCriterion("goodsCarriage not between", value1, value2, "goodsCarriage");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNull() {
            addCriterion("goodsType is null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIsNotNull() {
            addCriterion("goodsType is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeEqualTo(Integer value) {
            addCriterion("goodsType =", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotEqualTo(Integer value) {
            addCriterion("goodsType <>", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThan(Integer value) {
            addCriterion("goodsType >", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsType >=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThan(Integer value) {
            addCriterion("goodsType <", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeLessThanOrEqualTo(Integer value) {
            addCriterion("goodsType <=", value, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeIn(List<Integer> values) {
            addCriterion("goodsType in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotIn(List<Integer> values) {
            addCriterion("goodsType not in", values, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeBetween(Integer value1, Integer value2) {
            addCriterion("goodsType between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsType not between", value1, value2, "goodsType");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdIsNull() {
            addCriterion("goodsDiscId is null");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdIsNotNull() {
            addCriterion("goodsDiscId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdEqualTo(Integer value) {
            addCriterion("goodsDiscId =", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdNotEqualTo(Integer value) {
            addCriterion("goodsDiscId <>", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdGreaterThan(Integer value) {
            addCriterion("goodsDiscId >", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsDiscId >=", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdLessThan(Integer value) {
            addCriterion("goodsDiscId <", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdLessThanOrEqualTo(Integer value) {
            addCriterion("goodsDiscId <=", value, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdIn(List<Integer> values) {
            addCriterion("goodsDiscId in", values, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdNotIn(List<Integer> values) {
            addCriterion("goodsDiscId not in", values, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdBetween(Integer value1, Integer value2) {
            addCriterion("goodsDiscId between", value1, value2, "goodsDiscId");
            return (Criteria) this;
        }

        public Criteria andGoodsDiscIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsDiscId not between", value1, value2, "goodsDiscId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}